import request from './request'

const fetch = (url, paramas) => {
  return new Promise((resolve, reject) => {
    request.post(url, paramas).then(res => {
      resolve(res)
    }).catch(err => {
      reject(err)
    })
  })
}

export default fetch